-- GENERATED SPELL FOR [Festering Ghoul] --


function spell0_25660(pUnit, Event) --@Rot Armor,n/a--
pUnit:FullCastSpellOnTarget(50361,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25660', 10000, 1)
end

function Sorts_25660(pUnit, Event)
local choix_sorts_25660 = math.random(0, 0)
if choix_sorts_25660 == 0 then
pUnit:RegisterEvent('spell0_25660', 1, 1)
end
end

function mob25660_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25660', math.random(1500, 3000), 1)
end

function mob25660_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25660_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25660_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25660, 1, 'mob25660_Action')
RegisterUnitEvent(25660, 2, 'mob25660_Leave')
RegisterUnitEvent(25660, 3, 'mob25660_Kill')
RegisterUnitEvent(25660, 4, 'mob25660_Die')
